package com.it.aiInsureOrder;

import com.it.entity.insure.AiInsureOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import utils.R;
@FeignClient(value = "ai-insure")
public interface OrderApi {

    @PostMapping("aiInsureOrder/updateStatus")
    R updateStatus( AiInsureOrder aiInsureOrder);

    @GetMapping("aiInsureOrder/getOrder")
    public AiInsureOrder getOrderByPolicyId(@RequestParam(value = "policyId",required = false) String policyId);
}
